@charset "utf-8";

@font_url: "..";
@font-face {
    font-family: 'layer';
    src: url("@{font_url}/font/iconfont.eot");
    src: url("@{font_url}/font/iconfont.eot?#iefix") format('embedded-opentype'),
         url("@{font_url}/font/iconfont.woff2") format('woff2'),
         url("@{font_url}/font/iconfont.woff") format('woff'),
         url("@{font_url}/font/iconfont.ttf") format('truetype'),
         url("@{font_url}/font/iconfont.svg#iconfont") format('svg');
}
.layer-iconfont {
    font-family: "layer"!important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

// icon start ------------------------------------------------------------------
.layer-iconfont {
    margin-right: 5px;

    &.layer-icon-success {
        color: #06a35a;
    }
    &.layer-icon-error {
        color: #f83504;
    }
}
// icon end --------------------------------------------------------------------


// layer start -----------------------------------------------------------------
.layer {
    position: relative;

    &.layer-fixed {
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    &.xon {
        .layer-bg {
            background-color: rgba(0, 0, 0, 0.3);
        }
        .layer-main {
            transform: scale(1, 1);
            opacity: 1;
        }
        .layer-main,
        .layer-bg {
            transition-duration: 0.2s;
            transition-timing-function: ease-in;
        }
    }

    .layer-main {
        transition-duration: 0.15s;
        transition-timing-function: ease-in;
        transition-property: opacity,transform;
        transform: scale(0, 0);
        opacity: 0;
    }
}
// layer end -------------------------------------------------------------------

// layer-bg start --------------------------------------------------------------
.layer-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0);
    transition-duration: 0.1s;
    transition-timing-function: ease-in;
    transition-property: background-color, opacity;
}
// layer-bg end ----------------------------------------------------------------


// msg start -------------------------------------------------------------------
.layer-msg {
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
    transition-property: transform,opacity;
}
.layer-msg {
    position: fixed;
    left: 50%;
    max-width: 752px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
    z-index: 99999;

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        user-select: none;
    }

    p {
        padding: 0 24px;
        word-spacing: nowrap;
    }
}
.layer-msg-middle {
    top: 50%;
    margin-top: -25px;
    transform: scale(0, 0);

    &.xon {
        transform: scale(1,1);
    }
}
.layer-msg-top {
    top: 0;
    transform: translate(0, -100%) scale(1, 1);

    &.xon {
        transform: translate(0, 0) scale(1, 1);
    }
}
.layer-msg-bottom {
    bottom: 0;
    transform: translate(0, 100%) scale(1, 1);

    &.xon {
        transform: translate(0, 0) scale(1, 1);
    }
}
.layer-msg-black {
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
}
.layer-msg-white {
    background-color: rgba(255, 255, 255, 0.95);
    color: #222;
}
// msg end ---------------------------------------------------------------------


// layer-confirm start ---------------------------------------------------------
.layer-confirm {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    background-color: #fff;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
    z-index: 2;

    .layer-confirm-title {
        position: relative;
        display: flex;
        height: 30px;
        line-height: 30px;
        background-color: #f8f8f8;
        border-bottom: 1px solid #f0f0f0;
        user-select: none;

        p {
            margin: 0;
            margin-left: 15px;
        }
        i {
            width: 30px;
            margin-left: auto;
            text-align: center;
            cursor: pointer;

            &:hover {
                background-color: #f0f0f0;
            }
        }
    }
    .layer-confirm-content {
        padding: 15px;
        user-select: none;
    }
    .layer-confirm-btn {
        padding: 15px;
        text-align: right;
        user-select: none;

        button {
            cursor: pointer;
        }
    }
}
// layer-confirm end   ---------------------------------------------------------
